<template>
  <div>
    采购车
  </div>
</template>

<script>
import { getCartList } from '@/service/get-data'
export default {
  data () {
    return {
      purchase: []
    }
  },
  methods: {
    async fetchCartList () {
      const res = await getCartList()
      if (res.resultCode && res.resultCode === 2000) {
        this.purchase = res.data
      }
    }
  },
  created () {
    this.fetchCartList()
  },
  activated () {
    console.log('activated')
  }
}
</script>

<style>

</style>
